<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.9.1"/>
<title>IDA SDK: Segment structure</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td style="padding-left: 0.5em;">
   <div id="projectname">IDA SDK
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.9.1 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="files.html"><span>Header&#160;Files</span></a></li>
      <li><a href="annotated.html"><span>Classes</span></a></li>
      <li><a href="modules.html"><span>Modules</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#groups">Modules</a> &#124;
<a href="#nested-classes">Classes</a> &#124;
<a href="#func-members">Functions</a>  </div>
  <div class="headertitle">
<div class="title">Segment structure<div class="ingroups"><a class="el" href="group__seg.html">Segments</a></div></div>  </div>
</div><!--header-->
<div class="contents">
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<p>Definition of <a class="el" href="classsegment__t.html" title="Describes a program segment. ">segment_t</a> and related functions. </p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="groups"></a>
Modules</h2></td></tr>
<tr class="memitem:group__sa__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__sa__.html">Segment alignment codes</a></td></tr>
<tr class="memdesc:group__sa__"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used by <a class="el" href="classsegment__t.html#a0cdda6d61e64c64e32d8a2579d08eaa7" title="Segment alignment codes ">segment_t::align</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group__sc__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__sc__.html">Segment combination codes</a></td></tr>
<tr class="memdesc:group__sc__"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used by <a class="el" href="classsegment__t.html#a047c9cf9c9e87f5bf7a042bd0fa8d041" title="Segment combination codes ">segment_t::comb</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___s_e_g_p_e_r_m__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_g_p_e_r_m__.html">Segment permissions</a></td></tr>
<tr class="memdesc:group___s_e_g_p_e_r_m__"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used by <a class="el" href="classsegment__t.html#a62be35886ad227b02c18313645535543" title="Segment permissions (0 means no information) ">segment_t::perm</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___s_f_l__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_f_l__.html">Segment flags</a></td></tr>
<tr class="memdesc:group___s_f_l__"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used by <a class="el" href="classsegment__t.html#ae0a02d2eb01188198d74bd1c3690b6af" title="Segment flags ">segment_t::flags</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:group___s_e_g__"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group___s_e_g__.html">Segment types</a></td></tr>
<tr class="memdesc:group___s_e_g__"><td class="mdescLeft">&#160;</td><td class="mdescRight">Used by <a class="el" href="classsegment__t.html#a19f7e01c9078347a4dcfe37cb5239b3f" title="segment type (see Segment types). ">segment_t::type</a>. <br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="nested-classes"></a>
Classes</h2></td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classsegment__t.html">segment_t</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Describes a program segment.  <a href="classsegment__t.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:"><td class="memItemLeft" align="right" valign="top">class &#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classlock__segment.html">lock_segment</a></td></tr>
<tr class="memdesc:"><td class="mdescLeft">&#160;</td><td class="mdescRight">Helper class to lock a segment pointer so it stays valid.  <a href="classlock__segment.html#details">More...</a><br /></td></tr>
<tr class="separator:"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="func-members"></a>
Functions</h2></td></tr>
<tr class="memitem:ga5971fa41ef8ad4588a189a9715c36186"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga5971fa41ef8ad4588a189a9715c36186"></a>
&#160;</td><td class="memItemRight" valign="bottom"><b>CASSERT</b> (sizeof(<a class="el" href="classsegment__t.html">segment_t</a>)==104)</td></tr>
<tr class="separator:ga5971fa41ef8ad4588a189a9715c36186"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gab0317864374e984294b04693bb6b1f91"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="gab0317864374e984294b04693bb6b1f91"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#gab0317864374e984294b04693bb6b1f91">is_visible_segm</a> (<a class="el" href="classsegment__t.html">segment_t</a> *s)</td></tr>
<tr class="memdesc:gab0317864374e984294b04693bb6b1f91"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="group___s_f_l__.html#gac31257ddd90ad0acab343cebc28c2233" title="Is the segment hidden? ">SFL_HIDDEN</a>. <br /></td></tr>
<tr class="separator:gab0317864374e984294b04693bb6b1f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga647d00f6f9abf3ca68071646eeecf833"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga647d00f6f9abf3ca68071646eeecf833"></a>
bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#ga647d00f6f9abf3ca68071646eeecf833">is_finally_visible_segm</a> (<a class="el" href="classsegment__t.html">segment_t</a> *s)</td></tr>
<tr class="memdesc:ga647d00f6f9abf3ca68071646eeecf833"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="group___s_f_l__.html#gac31257ddd90ad0acab343cebc28c2233" title="Is the segment hidden? ">SFL_HIDDEN</a>, <a class="el" href="group___s_w___c.html#ga39f99672364821ce90aeed4d9b0f88c6" title="show hidden segments ">SW_SHHID_SEGM</a>. <br /></td></tr>
<tr class="separator:ga647d00f6f9abf3ca68071646eeecf833"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga4a5fcdb678001b56f1e193ae57ed938a"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga4a5fcdb678001b56f1e193ae57ed938a"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#ga4a5fcdb678001b56f1e193ae57ed938a">set_visible_segm</a> (<a class="el" href="classsegment__t.html">segment_t</a> *s, bool visible)</td></tr>
<tr class="memdesc:ga4a5fcdb678001b56f1e193ae57ed938a"><td class="mdescLeft">&#160;</td><td class="mdescRight">See <a class="el" href="group___s_f_l__.html#gac31257ddd90ad0acab343cebc28c2233" title="Is the segment hidden? ">SFL_HIDDEN</a>. <br /></td></tr>
<tr class="separator:ga4a5fcdb678001b56f1e193ae57ed938a"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:gaa20821d1751b3f47f92cc263e1552c7c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#gaa20821d1751b3f47f92cc263e1552c7c">is_spec_segm</a> (<a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a> seg_type)</td></tr>
<tr class="memdesc:gaa20821d1751b3f47f92cc263e1552c7c"><td class="mdescLeft">&#160;</td><td class="mdescRight">Has segment a special type?.  <a href="#gaa20821d1751b3f47f92cc263e1552c7c">More...</a><br /></td></tr>
<tr class="separator:gaa20821d1751b3f47f92cc263e1552c7c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga80f10e64c09b833e76ca5f3b7954cc9d"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#ga80f10e64c09b833e76ca5f3b7954cc9d">is_spec_ea</a> (<a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a> ea)</td></tr>
<tr class="memdesc:ga80f10e64c09b833e76ca5f3b7954cc9d"><td class="mdescLeft">&#160;</td><td class="mdescRight">Does the address belong to a segment with a special type?.  <a href="#ga80f10e64c09b833e76ca5f3b7954cc9d">More...</a><br /></td></tr>
<tr class="separator:ga80f10e64c09b833e76ca5f3b7954cc9d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga63b6f6b1ceaff968314c9125a5206e60"><td class="memItemLeft" align="right" valign="top"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#ga63b6f6b1ceaff968314c9125a5206e60">lock_segm</a> (const <a class="el" href="classsegment__t.html">segment_t</a> *segm, bool lock)</td></tr>
<tr class="memdesc:ga63b6f6b1ceaff968314c9125a5206e60"><td class="mdescLeft">&#160;</td><td class="mdescRight">Lock segment pointer Locked pointers are guaranteed to remain valid until they are unlocked.  <a href="#ga63b6f6b1ceaff968314c9125a5206e60">More...</a><br /></td></tr>
<tr class="separator:ga63b6f6b1ceaff968314c9125a5206e60"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ga61e6c48b6b509790a83f5a78f77c4224"><td class="memItemLeft" align="right" valign="top"><a class="anchor" id="ga61e6c48b6b509790a83f5a78f77c4224"></a>
<a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="group__seg__t.html#ga61e6c48b6b509790a83f5a78f77c4224">is_segm_locked</a> (const <a class="el" href="classsegment__t.html">segment_t</a> *segm)</td></tr>
<tr class="memdesc:ga61e6c48b6b509790a83f5a78f77c4224"><td class="mdescLeft">&#160;</td><td class="mdescRight">Is a segment pointer locked? <br /></td></tr>
<tr class="separator:ga61e6c48b6b509790a83f5a78f77c4224"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<h2 class="groupheader">Function Documentation</h2>
<a class="anchor" id="gaa20821d1751b3f47f92cc263e1552c7c"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> is_spec_segm </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a65f85814a8290f9797005d3b28e7e5fc">uchar</a>&#160;</td>
          <td class="paramname"><em>seg_type</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Has segment a special type?. </p>
<p>(<a class="el" href="group___s_e_g__.html#ga5c9bbede59653b945dacc70598306289" title="* segment with &#39;extern&#39; definitions. ">SEG_XTRN</a>, <a class="el" href="group___s_e_g__.html#gab3bd0f97c65dd59b10ea76b16d444784" title="* group of segments ">SEG_GRP</a>, <a class="el" href="group___s_e_g__.html#ga5c130d299e48ff537068e03e8ae23d71" title="* segment with definitions of absolute symbols ">SEG_ABSSYM</a>, <a class="el" href="group___s_e_g__.html#ga39a39aa78e00ea21899571a2b636976e" title="* segment with communal definitions ">SEG_COMM</a>) </p>

</div>
</div>
<a class="anchor" id="ga80f10e64c09b833e76ca5f3b7954cc9d"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> bool <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> is_spec_ea </td>
          <td>(</td>
          <td class="paramtype"><a class="el" href="pro_8h.html#a7b0aeaed04e477c02cf8ea3452002d1a">ea_t</a>&#160;</td>
          <td class="paramname"><em>ea</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Does the address belong to a segment with a special type?. </p>
<p>(<a class="el" href="group___s_e_g__.html#ga5c9bbede59653b945dacc70598306289" title="* segment with &#39;extern&#39; definitions. ">SEG_XTRN</a>, <a class="el" href="group___s_e_g__.html#gab3bd0f97c65dd59b10ea76b16d444784" title="* group of segments ">SEG_GRP</a>, <a class="el" href="group___s_e_g__.html#ga5c130d299e48ff537068e03e8ae23d71" title="* segment with definitions of absolute symbols ">SEG_ABSSYM</a>, <a class="el" href="group___s_e_g__.html#ga39a39aa78e00ea21899571a2b636976e" title="* segment with communal definitions ">SEG_COMM</a>) </p><dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ea</td><td>linear address </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a class="anchor" id="ga63b6f6b1ceaff968314c9125a5206e60"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="pro_8h.html#a8ddba56b40c4be92718f8059abf51147">idaman</a> void <a class="el" href="pro_8h.html#a176294e75f953787714b9d08ffa89adf">ida_export</a> lock_segm </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classsegment__t.html">segment_t</a> *&#160;</td>
          <td class="paramname"><em>segm</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">bool&#160;</td>
          <td class="paramname"><em>lock</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Lock segment pointer Locked pointers are guaranteed to remain valid until they are unlocked. </p>
<p>Ranges with locked pointers can not be deleted or moved. </p>

</div>
</div>
</div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by &#160;<a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.9.1
</small></address>
</body>
</html>
